package com.kuaimacode.kframework.admin.vo.request;

import com.kuaimacode.kframework.common.SaveRequest;
import com.kuaimacode.kframework.common.UpdateRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.admin.vo.request
 * @Description: created by IntelliJ IDEA
 * @date 2019-04-01 21:56
 */
@Data
public class SysMessageReq {

    public Long id;
    private Long userId;
    public String phone;
    @NotNull(message = "消息类型不能为空", groups = {SaveRequest.class, UpdateRequest.class})
    private Byte type;
    @NotNull(message = "用户类型不能为空", groups = {SaveRequest.class, UpdateRequest.class})
    private Byte userType;
    @NotBlank(message = "标题不能为空", groups = {SaveRequest.class, UpdateRequest.class})
    private String title;
    @NotBlank(message = "副标题不能为空", groups = {SaveRequest.class, UpdateRequest.class})
    private String subtitle;
    @NotBlank(message = "内容不能为空", groups = {SaveRequest.class, UpdateRequest.class})
    private String content;
    private Boolean isPush;
}
